package com.nefu.huiyi.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import java.time.LocalDateTime;

@Data
@TableName("city")
public class City {

    @Schema(description = "城市ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @Schema(description = "城市编码")
    @TableField("city_code")
    private String cityCode;

    @Schema(description = "城市名称")
    @TableField("city_name")
    private String cityName;

    @Schema(description = "所属省份")
    @TableField("province")
    private String province;

    @Schema(description = "医药公司总数")
    @TableField("pharma_company_count")
    private Integer pharmaCompanyCount;

    @Schema(description = "销售地点总数")
    @TableField("sales_site_count")
    private Integer salesSiteCount;

    @Schema(description = "创建时间")
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @Schema(description = "更新时间")
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
}